source = File.new("06062001.hrm", "r")
headlines = {
"[Params]" => "=",
"[Note]" => "",
"[IntTimes]" => "",
"[IntNotes]" => "", 
"[ExtraData]" => "",
"[Summary-123]" => "",
"[Summary-TH]" => "",
"[HRZones]" => "",
"[SwapTimes]" => "",
"[Trip]" => "",
"[HRData]" => ""
}
#puts headlines
parsefollwing = false
source.each do |line|
    if line =~ /\[.*\]/	    
	unless headlines[line]
	    parsefollwing = true
	    puts "parseit"
	else
	   parsefollwing = false	
	end	
    else
    if parsefollwing && line =~ /\=/  
	    
	    puts line
       key,value = line.chomp.split( /\=/ )     
       puts "key " + key + "   value" + value
    end
    end
	
    
end
